<%@page import="com.etc.zzsys.entity.Users"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h1>users2.jsp</h1>

	<p>我们需要去请求范围内拿数据,拿之前要确保有数据.</p>
	<%
		//request.getAttribute(arg0) 参数为key的名字
		if (request.getAttribute("list") != null) {
			Object obj = request.getAttribute("list");
			//显示数据
			if (obj instanceof List) {
				List<Users> list = (List<Users>) obj;

				for (Users u : list) {
	%>
	<%=u.getUserName()%>,
	<%=u.getUserSex()%>,
	<%=u.getUserPwd()%>
	<br />
	<%
		}
			}
		}
	%>

</body>
</html>